<?php
	session_start();
		if(!$_SESSION['login'] == 1 && $_SESSION['sessionid'] !== session_id()) {
		header("Location: ./");
		exit;
	}
	
	if($_SESSION['priv'] > 3) {
		$lang = $_SESSION['lang'];
		require_once("include/lang." . $lang . ".php");
		echo ERR_PRIV;
		exit;
	}
	include("include/class.mysql.php");
	include("include/layout.php");
		


html_start();
	
		// Edit section
						
		$MySQL->conn();
		$self =$_SESSION['self'];
		$sql = mysql_query("SELECT * FROM " . DB_PREFIX . "users WHERE id = '$self'") or die(mysql_error());
		while($row = mysql_fetch_array($sql)) {
		$_SESSION['pin']=strip_tags($row['pin']);
		$_SESSION['tel']=strip_tags($row['tel']);
	$MySQL->close();

	
?>


		<br />
		<span class="conin">
<form method="post" action="sendsms.php" target=_BLANK >
			
			
				<legend>Escolha os dados para o seu SMS</legend>
				
					<br />
					Bem vindo <?=$_SESSION['user'];?>	
<fieldset>
					<br />
					<br />
					Pin
					<br />
					<?=$_SESSION['pin'];?>
					<br />
					Telefone
					<br />
					<?=$_SESSION['tel'];?>

					<br />					
						
<?}?>




<?php
//new

$mobile = $_POST["mobile"];
$message = $_POST["message"];
if (!isset($_POST['submit'])) {}
?>
<br />


						


<br />

<tr>
    <td><strong>Numero:</strong></td>
<br />
Numero:<input type="text" size="12" maxlength="12" name="mobile">:<br />
<br />
Mensagem: <textarea rows="5" cols="20" name="message" wrap="physical">escreva a sua mensagem!</textarea>:<br />
<input type="submit" value="Send Sms" name="submit"><br />
</form><br />

</fieldset>
						
	</span>

<?php	html_end();?>